home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsICertTree.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  137 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICertTree.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICertTree_h__
  6. #define __gen_nsICertTree_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsITreeView_h__
  14. #include "nsITreeView.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsINSSCertCache; /* forward declaration */
  22.  
  23. class nsIX509Cert; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsICertTree */
  27. #define NS_ICERTTREE_IID_STR "4ea60761-31d6-491d-9e34-4b53a26c416c"
  28.  
  29. #define NS_ICERTTREE_IID \
  30.   {0x4ea60761, 0x31d6, 0x491d, \
  31.     { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c }}
  32.  
  33. class NS_NO_VTABLE nsICertTree : public nsITreeView {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICERTTREE_IID)
  37.  
  38.   /* void loadCerts (in unsigned long type); */
  39.   NS_IMETHOD LoadCerts(PRUint32 type) = 0;
  40.  
  41.   /* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
  42.   NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) = 0;
  43.  
  44.   /* nsIX509Cert getCert (in unsigned long index); */
  45.   NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert **_retval) = 0;
  46.  
  47.   /* void removeCert (in unsigned long index); */
  48.   NS_IMETHOD RemoveCert(PRUint32 index) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSICERTTREE \
  54.   NS_IMETHOD LoadCerts(PRUint32 type); \
  55.   NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type); \
  56.   NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert **_retval); \
  57.   NS_IMETHOD RemoveCert(PRUint32 index); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSICERTTREE(_to) \
  61.   NS_IMETHOD LoadCerts(PRUint32 type) { return _to LoadCerts(type); } \
  62.   NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) { return _to LoadCertsFromCache(cache, type); } \
  63.   NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert **_retval) { return _to GetCert(index, _retval); } \
  64.   NS_IMETHOD RemoveCert(PRUint32 index) { return _to RemoveCert(index); } 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSICERTTREE(_to) \
  68.   NS_IMETHOD LoadCerts(PRUint32 type) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCerts(type); } \
  69.   NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCertsFromCache(cache, type); } \
  70.   NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(index, _retval); } \
  71.   NS_IMETHOD RemoveCert(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCert(index); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsCertTree : public nsICertTree
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSICERTTREE
  82.  
  83.   nsCertTree();
  84.  
  85. private:
  86.   ~nsCertTree();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsCertTree, nsICertTree)
  94.  
  95. nsCertTree::nsCertTree()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsCertTree::~nsCertTree()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* void loadCerts (in unsigned long type); */
  106. NS_IMETHODIMP nsCertTree::LoadCerts(PRUint32 type)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
  112. NS_IMETHODIMP nsCertTree::LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* nsIX509Cert getCert (in unsigned long index); */
  118. NS_IMETHODIMP nsCertTree::GetCert(PRUint32 index, nsIX509Cert **_retval)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* void removeCert (in unsigned long index); */
  124. NS_IMETHODIMP nsCertTree::RemoveCert(PRUint32 index)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* End of implementation class template. */
  130. #endif
  131.  
  132. #define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
  133.                          { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
  134. #define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
  135.  
  136. #endif /* __gen_nsICertTree_h__ */
  137.